﻿namespace Core
{
    public class FrameComponent : Core.Component, IAwake, IFrameUpdate
    {
        public int FrameCount { get; private set; }
        public float DeltaTime { get; private set; }

        public void Awake()
        {
        }

        public override void Dispose()
        {
            if (IsDisposed) return;
            base.Dispose();
        }

        public void Tick()
        {
            FrameCount++;

            DeltaTime = SysTime.DeltaTime;
        }
    }
}
